﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Business;
namespace QLHS
{
    public partial class frm_Inanl2 : Form
    {
        public frm_Inanl2()
        {
            InitializeComponent();
        }
        MonHoc_BUL bu = new MonHoc_BUL();
        private void btndong_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void btnxem_Click(object sender, EventArgs e)
        {
            if (lo_mon.Text == "" || lo_lop.Text == "" || cbohk.Text == "")
                MessageBox.Show("Vui lòng chọn đủ Lớp, Môn và Học Kỳ cần xem...", "Thông Báo");
            else
            {
                frm_Report f = new frm_Report(3, lo_lop.Text, cbohk.Text, lo_mon.Text);
                f.Show();
            }
        }
        HocSinh_BUL l = new HocSinh_BUL();
        private void frm_Inanl2_Load(object sender, EventArgs e)
        {
            lo_mon.Properties.DataSource = bu.Laymonkchk();
            lo_mon.Properties.DisplayMember = "TENMON";
            lo_mon.Properties.ValueMember = "TENMON";
            //..........................
            lo_lop.Properties.DataSource = l.Laylop();
            lo_lop.Properties.DisplayMember = "TENLOP";
            lo_lop.Properties.ValueMember = "TENLOP";
        }
    }
}
